cmake_minimum_required(VERSION 3.10)
project(rkllm_demo)

add_executable(main_image main_image.cpp)

# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,relro,-z,now,-z,noexecstack -pie")  # 加-s会把调试信息删掉

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(OpenCV REQUIRED)

include_directories(runtime/include)
include_directories(${OpenCV_INCLUDE_DIRS})

target_link_libraries(
    main_image 
    ${CMAKE_SOURCE_DIR}/runtime/lib/librkllmrt.so
    ${CMAKE_SOURCE_DIR}/runtime/lib/librknnrt.so
    ${OpenCV_LIBS}
    pthread
)
